<template>
  <div class="container frame" style="width:100%;height:calc(100% - 70Px);">
    <LeftNav :actived.sync="name" :menu="menu"></LeftNav>
    <div class="main" :style="{'pointer-events':isNone}">
      <HeadTop></HeadTop>
      <router-view/>
    </div>
  </div>
</template>

<script>
import LeftNav from './LeftNav'
import HeadTop from './headTop'

export default {
  data() {
    return {
      name: '',
      isNone:'auto',
    }
  },
  components: {
    LeftNav,
    HeadTop,
  },
  computed:{
    menu(){
      return [
        {
          index: '1',
          name: '列表管理',
          iconFont:'icon-liebiaoguanli',
          permission: '/ListManage',
          children: [
            {
              index: '1-1',
              name: '案件列表',
              icon: '',
              permission: '/ListManage/Case',
              to: '/ListManage/Case',
            },
            {
              index: '1-2',
              name: '嫌疑人列表',
              icon: '',
              permission: '/ListManage/Suspecter',
              to: '/ListManage/Suspecter',
            },
            {
              index: '1-3',
              name: '受害人列表',
              icon: '',
              permission: '/ListManage/Victim',
              to: '/ListManage/Victim',
            },
          ]
        },
        {
          index: '2',
          name: '画像管理',
          iconFont:'icon-huaxiangguanli',
          permission: '/ImageManage',
          children: [
            {
              index: '2-1',
              name: '案件画像',
              icon: '',
              permission: '/ImageManage/CaseImage',
              to: '/ImageManage/CaseImage',
            },
            {
              index: '2-2',
              name: '嫌疑人画像',
              icon: '',
              permission: '/ImageManage/SuspecterImage',
              to: '/ImageManage/SuspecterImage',
            },
            {
              index: '2-3',
              name: '受害人画像',
              icon: '',
              permission: '/ImageManage/VictimImage',
              to: '/ImageManage/VictimImage',
            },
          ]
        },
        {
          index: '11',
          name: '电诈分析',
          iconFont:'icon-biaoqianguanli',
          permission: '/ElectricAnalysis',
          children: [
            {
              index: '3-1',
              name: '组织架构分析',
              icon: '',
              permission: '/ElectricAnalysis/OrgAnalysis',
              to: '/ElectricAnalysis/OrgAnalysis',
            }
           
          ]
        },
        {
          index: '3',
          name: '标签管理',
          iconFont:'icon-biaoqianguanli',
          permission: '/TagManage',
          children: [
            {
              index: '3-1',
              name: '案件标签',
              icon: '',
              permission: '/TagManage/CaseTag',
              to: '/TagManage/CaseTag',
            },
            {
              index: '3-2',
              name: '嫌疑人标签',
              icon: '',
              permission: '/TagManage/SuspecterTag',
              to: '/TagManage/SuspecterTag',
            },
            {
              index: '3-3',
              name: '受害人标签',
              icon: '',
              permission: '/TagManage/VictimTag',
              to: '/TagManage/VictimTag',
            },
          ]
        },
        {
          index: '4',
          name: '分群管理',
          iconFont:'icon-fenqunguanli',
          permission: '/GroupManage',
          children: [
            {
              index: '4-1',
              name: '案件分群',
              icon: '',
              permission: '/GroupManage/CaseGroup',
              to: '/GroupManage/CaseGroup',
            },
            {
              index: '4-2',
              name: '嫌疑人分群',
              icon: '',
              permission: '/GroupManage/SuspecterGroup',
              to: '/GroupManage/SuspecterGroup',
            },
            {
              index: '4-3',
              name: '受害人分群',
              icon: '',
              permission: '/GroupManage/VictimGroup',
              to: '/GroupManage/VictimGroup',
            },
          ]
        },
        /*        {
                  index: '5',
                  name: '用户后台',
                  iconFont:'icon-liebiaoguanli',
                  children: [
                    {
                      index: '5-1',
                      name: '团队管理',
                      icon: '',
                      to: '/SystemManage/DepartmentManage',
                    },
                    {
                      index: '5-2',
                      name: '角色管理',
                      icon: '',
                      to: '/SystemManage/RoleManage',
                    },
                  ]
                },*/
      ]
    },
  },
  methods:{
  },
  created() {
  }
}
</script>
<style scoped></style>
